package com.sudo.common.controller;

import com.sudo.common.constant.UserConstant;

/**
 * @author 为道日损 2020-04-24 15:29
 */
public abstract class BaseController {

    protected boolean superName(String username) {
        return UserConstant.SUPER_NAME.equals(username);
    }
    protected boolean superAdmin(String roleCode) {
        return UserConstant.SUPER_ADMIN.equals(roleCode);
    }

}
